home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 301-325 / disk_319 / cnewssrc / cnews.orig.lzh / contrib / rn.mod / README < prev   
Text File  |  1989-06-27  |  2KB  |  35 lines

  1. The cdiff.* files contain a pair of rn speedups, relative to rn
  2. patchlevel 40 as modified by U of Waterloo: they remove some expensive
  3. stat system calls.  The base U of Waterloo rn contains two other handy
  4. changes:  a -q which disables the interrogation when the active file
  5. changes, and a third answer during the interrogation: "q" means "I
  6. don't care, just show me some news, right now".
  7.  
  8. The changes to ngdata.c prevent rn stating every file under
  9. /usr/spool/news that might contain an article before opening it.
  10.  
  11. The changes to addng.c prevent rn stating all ~700 directories under
  12. /usr/spool/news every time the active file changes (this is known as
  13. "the rn huddle").  In the one timing trial we did, this reduced start
  14. up time after touching active from 56 seconds elapsed on a Sun 3 to 8
  15. seconds.  Before making these changes, longer huddles in the range of
  16. 10 to 15 minutes were observed on Sun 3s and 4s, perhaps because the
  17. active file was touched in a different spot.
  18.  
  19. Unfortunately the new addng.c code means that you will get an even
  20. longer interrogation after the shorter huddle than you previously
  21. would, as many groups will be spuriously considered "new".  If you have
  22. -q available, you can keep up with new groups by just reading the
  23. "control" pseudo-group with "ihave", "sendme" and "cancel" in your
  24. control kill file.
  25.  
  26. The theory behind the 700 stats in the newgroup huddle was apparently
  27. that if rn stats group/1, and it exists, then group must be a
  28. newly-created group.  There's gotta be a better way.  With rapid
  29. expiry, group/1 won't be around for long in most groups, causing rn to
  30. miss some new groups, and in "valuable" groups with long expiry times,
  31. group/1 will be around for a very long time, making rn spuriously think
  32. that the old groups are new.  Proper fixes for this problem involve
  33. reworking rn's strategy for determining new newsgroups completely,
  34. using the "active.times" file.  Volunteers?
  35.